def my_len(Str=''):
    count = 0
    for x in Str:
        count += 1
    return count


string = 'hello world'
print(f"string的长度为{my_len(string)}")
